package com.awesome.javademo.algorithm.activities;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.awesome.javademo.R;
import com.awesome.javademo.algorithm.solution.SolutionString;
import com.awesome.common.util.log.ShowLogUtil;

public class StringActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_string);
//        ShowLogUtil.info(SolutionString.atoi("42"));
//        ShowLogUtil.info(SolutionString.atoi("   -42"));
//        ShowLogUtil.info(SolutionString.atoi("4193 with words"));
//        ShowLogUtil.info(SolutionString.atoi("words and 987"));
//        ShowLogUtil.info(SolutionString.atoi("-91283472332"));

//        ShowLogUtil.info(SolutionString.myAtoi("42"));
//        ShowLogUtil.info(SolutionString.myAtoi("   -42"));
//        ShowLogUtil.info(SolutionString.myAtoi("-4-2"));
//        ShowLogUtil.info(SolutionString.myAtoi("4193 with words"));
//        ShowLogUtil.info(SolutionString.myAtoi("words and 987"));
//        ShowLogUtil.info(SolutionString.myAtoi("-91283472332"));

//        char[] chars = SolutionString.getChars();
//        char[] newChars = SolutionString.reverseString(chars);
//        SolutionString.printChars(newChars);

//        int x = SolutionString.getInt();
//        int reverseInt = SolutionString.reverse(x);
//        ShowLogUtil.info("reverseInt=" + reverseInt);

    }
}